package com.app.sgd.model.bean;

import java.util.ArrayList;
import java.util.List;

public class DeletedSupList extends ArrayList{
	
    /**
	 * 
	 */
	private static final long serialVersionUID = -221469611150983883L;
	private List deletedList = new ArrayList(3);

    public DeletedSupList(){
        super();
    }
    public DeletedSupList(int capacity){
        super(capacity);
    }
    public Object remove(int index){
        Object obj = super.remove(index);
        deletedList.add( obj );
        return obj;
    }
    
    public boolean remove(Object obj){
        boolean result = super.remove(obj);
        if (result) deletedList.add(obj);
        return result;
    }
    
    public List getDeletedList(){
        return deletedList;
    }
}
